package com.demo.d514.web;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.google.gson.Gson;

@Controller
@RequestMapping("")
public class IndexController {

	private Logger logger = Logger.getLogger(getClass());

	@Autowired
	private Gson gson;

	@RequestMapping("/")
	public String root(HttpServletRequest request) {
		logger.info("query:" + request.getQueryString());
		return "home";
	}
	
	@RequestMapping("/home")
	public String home(HttpServletRequest request) {
		logger.info("query:" + request.getQueryString());
		return "home";
	}
}
